//
//  PublicServerCell.m
//  hnGovernment
//
//  Created by 安仔 on 17/2/25.
//  Copyright © 2017年 安仔. All rights reserved.
//

#import "PublicServerCell.h"

@interface PublicServerCell ()

@end

@implementation PublicServerCell

- (instancetype) initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        [self createServerDifferCell];
    }
    return self;
}

- (void)createServerDifferCell {
    self.signImg = [[UIImageView alloc] init];
    self.signImg.clipsToBounds = YES;
    self.signImg.backgroundColor = [UIColor clearColor];
    self.signImg.image = [UIImage imageNamed:@"社保查询"];
    [self.contentView addSubview:self.signImg];
    [self.signImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.contentView.centerX);
        make.top.mas_equalTo(30 * m6Scale);
        make.size.mas_equalTo(CGSizeMake(86 * m6Scale, 86 * m6Scale));
    }];
    
    self.titleLab = [[UILabel alloc] init];
    self.titleLab.textColor = [UIColor colorWithHexString:@"3c3c3c"];
    self.titleLab.font = [UIFont systemFontOfSize:24 * m6Scale];
    self.titleLab.textAlignment = NSTextAlignmentCenter;
    self.titleLab.text = NSLocalString(@"社保查询");
    [self.contentView addSubview:self.titleLab];
    [self.titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.contentView.centerX);
        make.top.mas_equalTo(self.signImg.mas_bottom).offset(10 * m6Scale);
        make.size.mas_equalTo(CGSizeMake(self.frame.size.width, 40 * m6Scale));
    }];
    
}



@end
